package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.dto.UltragroupAdminUserDto;
import com.zf.yichat.model.MessageUltragroupAdminUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageUltragroupAdminUserMapper extends FsMapper<MessageUltragroupAdminUser> {

    /**
     * 查询超级群的管理员列表
     * @param ultragroupId
     * @param userId
     * @param nick
     * @param mobile
     * @param realName
     * @return
     */
    List<UltragroupAdminUserDto> queryUltragroupAdmin(@Param("ultragroupId") String ultragroupId, @Param("userId") String userId,
                                                      @Param("nick") String nick,@Param("mobile") String mobile,
                                                      @Param("realName") String realName);

    /**
     * 删除本地数据库中的超级群管理员
     * @param ultragroupId
     * @param userId
     * @return
     */
    int deleteUltragroupAdmin(@Param("ultragroupId") String ultragroupId, @Param("userId") String userId);
}